import isEmpty from "lodash/isEmpty"
const initData = {
    isAuth: false,
    user: null
}
import * as Types from "./actionTypes"
export default (state = initData, action) => {
    switch (action.type) {
        case Types.SYNC_STATE_INFO:
            console.log("llllllllllllll", action,isEmpty(action.payload));
            return {
                isAuth: !isEmpty(action.payload),
                user: action.payload,
            }
        default:
            return state
    }
}